package ast;

public class VarNode extends Node
{
	public String id;

	public VarNode(VarNode n, String id){
		left = n;
		this.id = id;
		right = null;
	}
	
	public VarNode(CallVarNode cvn, String id){
		left = cvn;
		this.id = id;
		right = null;
	}
	
	public VarNode(String id){
		left = null;
		this.id = id;
		right = null;
	}
	
	public Object accept(Visitor v) {
		return v.visit(this);
	}

}
